<script type="text/javascript">
		// Activo el Mejorador de SELECT
		jQuery(".chzn-select").chosen(); 
		jQuery(".chzn-select-deselect").chosen({allow_single_deselect:true});
		jQuery(".chzn-select").chosen({no_results_text: "No hay resultados"});
</script>
<div class="clientsUsers form">
<?php echo $this->Form->create('ClientsUser',array('enctype'=>"multipart/form-data"));?>
	<fieldset>
	<?php
		echo $this->Form->input('client_id', array('type' => 'hidden', 'value' => $id_cliente));


		echo $this->Form->input('User.tratamiento',array( 'label' => __('Prefijo',true)));
		echo $this->Form->input('User.lastname',array( 'label' => __('Apellido',true)));
		echo $this->Form->input('User.name',array( 'label' => __('Nombre',true)));
	
		echo $this->Form->input('User.email',array( 'label' => __('E-mail',true)));

		echo "<table style='width:100%'><tr><td style='width:30%'>";
		echo $this->Form->input('User.matricula',array( 'label' => __('Matrícula',true), 'style' => 'width:150px;'));
		echo "</td><td>";
		echo $this->Form->input('User.foto_firma',array( 'type' => 'file','label' => __('Firma Digitalizada',true), 'style' => 'width:85%;'));
		echo "</td></tr></table>";

		echo $this->Form->input('SpecialtiesUser.specialty_id', array('class' => 'chzn-select', 'data-placeholder' => __('Seleccione las especialidades',true),'options' => $specialties, 'multiple' => 'true','label' => __('Especialidades',true), 'style' => 'width:350px;'));

		echo $this->Form->input('User.telefono',array( 'label' => __('Teléfono',true)));
		echo $this->Form->input('User.fecha_nacimiento',array( 'label' => __('Fecha de Nacimiento',true), 'empty' => '---'
                                    , 'dateFormat' => 'DMY'
                                    , 'minYear' => date('Y') - 100
                                    , 'maxYear' => date('Y') ));

		echo $this->Form->input('User.typodocument_id',array( 
										'label' => __('Tipo de Documento',true),
										'empty' => '--- Seleccione uno ---'
									)
								);

		echo $this->Form->input('User.nro_documento',array( 'label' => __('Nro. de Documento',true)));
		echo $this->Form->input('User.country_id', array('label' => __('País',true)));


		echo $this->Form->input('User.username',array( 'label' => __('Usuario',true)));
		echo $this->Form->input('User.password',array( 'label' => __('Contraseña',true)));
		echo $this->Form->input('RolsUser.rol_id', array('class' => 'chzn-select', 'data-placeholder' => __('Seleccione los roles',true),'options' => $roles, 'multiple' => 'true','label' => __('Roles',true), 'style' => 'width:350px;'));

	?>
	</fieldset>
	<?php echo $this->Form->end(__('Cargar', true));?>
</div>